package com.tony.business.config;

import com.tony.util.properties.SystemProperties;
import com.tony.util.properties.UploadFileProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 96543
 * @date 2019/8/17 17:49
 */
@Configuration
public class CustomConfig {

    @Bean
    @ConfigurationProperties(prefix = "system.file")
    public UploadFileProperties uploadFileProperties(){
        return new UploadFileProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "system.interceptor")
    public SystemProperties systemProperties(){
        return new SystemProperties();
    }

}
